#pragma once

#include "GameBase.h"
#include "jsonreader.h"
#include "GameScene.h"
#include "randomseed.h"

class EffectFactory : public GameBase
{
private:
	static EffectFactory* _p_this;
	EffectFactory();

	Effect* BombEffectMake(Event_struct* Efinfo);
	Effect* CrashEffectMake(Event_struct* Efinfo);
	Effect* BulletEffectMake(Event_struct* Efinfo);
	Effect* OtherEffectMake(Event_struct* Efinfo);

	LPDIRECT3DTEXTURE9 eff01;
	LPDIRECT3DTEXTURE9 eff02;
	LPDIRECT3DTEXTURE9 eff03;
	LPDIRECT3DTEXTURE9 eff04;
	LPDIRECT3DTEXTURE9 bomb00;
	LPDIRECT3DTEXTURE9 bomb01;

	jsonreader* reader;
	randomseed* seed;
	
	GameScene* scene;
public:
	static EffectFactory* Instance();
	Effect* EffectMake(Event_struct* Efinfo);
	~EffectFactory();
};